//
// Created by Cattle on 2025/10/15.
//


#include <iostream>
#include <ostream>

int main() {
    int elephant_count;
    int lion_count {};  // Initializes to zero
    int dog_count {10}; // Initializes to 10
    int cat_count {15}; // Initializes to 15

    int domesticated_animals { dog_count + cat_count };

    // int narrowing_conversion {2.9};

    std::cout << "elephant count is: " << elephant_count << std::endl;
    std::cout << "lion count is: " << lion_count << std::endl;
    std::cout << "dog count is: " << dog_count << std::endl;
    std::cout << "cat count is: " << cat_count << std::endl;

    // Functional Initialization
    int app_count(5);
    int orange_count(10);
    int fruit_count(app_count + orange_count);
    std::cout << "Apple count is: " << app_count << std::endl;
    std::cout << "Orange count is: " << orange_count << std::endl;
    std::cout << "Fruit count is: " << fruit_count << std::endl;

    // Assignment notation
    int bike_count = 2;
    int truck_count = 5;
    int vehicle_count { truck_count + bike_count };

    std::cout << "Bike count is: " << bike_count << std::endl;
    std::cout << "Truck count is: " << truck_count << std::endl;
    std::cout << "Vehicle count is: " << vehicle_count << std::endl;

    // Check the size with sizeof
    std::cout << "sizeof int:" << sizeof(int) << std::endl;
    std::cout << "sizeof truck_count:" << sizeof(truck_count) << std::endl;


    return 0;
}
